<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order_active".
 *
 * @property int $id
 * @property int $active_status
 * @property string $active_code
 * @property int $order_id
 * @property int|null $order_item_id
 */
class OrderActive extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'order_active';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['active_status', 'order_id', 'order_item_id'], 'integer'],
            [['active_code'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'active_status' => 'Active Status',
            'active_code' => 'Active Code',
            'order_id' => 'Order ID',
            'order_item_id' => 'Order Item ID',
        ];
    }
}
